import os
import pickle
import mimetypes
from bottle import route, static_file, response, request
#import cherrypy
#from cherrypy.lib.static import serve_file

@route("/file/<file:path>")
def file(file):
	for k,v in request.headers.items():
		print(k, v)
	mimetype, _ = mimetypes.guess_type(file)
	return static_file(os.path.basename(file), root=os.path.dirname(file))

